/*
 * TOSECommands.h
 *
 * This file is a part of TermOSEmulator.
 *
 * Written by Peter Winchester <wincsoft_pw@outlook.com>
 * Copyright (C) 2021 Peter Winchester.
 *
 * TermOSEmulator is free software, follows the GNU General
 * Public License.
 *
 * NOTE: TermOSEmulator requires Windows API, so it can only
 * run on the Windows.
 *
 */

#ifndef TOSE_COMMANDS_H
#define TOSE_COMMANDS_H

#include "TermOSEmulator.h"

#define NUM_COMMANDS 10

typedef int (*CmdFunc)(vector<string>);

extern CmdFunc cmdOpt[NUM_COMMANDS]; //函数指针，指向命令的执行函数
extern string cmdName[NUM_COMMANDS];

int pause(vector<string>);
int exitSys(vector<string>);
int ls(vector<string>);
int cd(vector<string>);
int mkdir(vector<string>);
int rmdir(vector<string>);
int rmf(vector<string>);
int view(vector<string>);
int help(vector<string>);
int apt(vector<string>);

#endif //TOSE_COMMANDS_H
